package ch.ti.bfh.app.loodel.web.model;

import ch.ti.bfh.app.loodel.service.create.CreateTimeSlotData;
import org.primefaces.model.DefaultScheduleEvent;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Scope("view")
public class CreateTimeSlotModel {
    private CreateTimeSlotData createTimeSlotData;

    private DefaultScheduleEvent scheduleEvent;

    private Date selectedDate;

    private Date selectedTimeStart;

    private Date selectedTimeEnd;

    private String timeDuration;

    public void reset() {
        this.createTimeSlotData = null;
        this.scheduleEvent = null;
    }

    public Date getSelectedDate() {
        return selectedDate;
    }

    public void setSelectedDate(Date selectedDate) {
        this.selectedDate = selectedDate;
    }

    public Date getSelectedTimeStart() {
        return selectedTimeStart;
    }

    public void setSelectedTimeStart(Date selectedTimeStart) {
        this.selectedTimeStart = selectedTimeStart;
    }

    public Date getSelectedTimeEnd() {
        return selectedTimeEnd;
    }

    public void setSelectedTimeEnd(Date selectedTimeEnd) {
        this.selectedTimeEnd = selectedTimeEnd;
    }

    public CreateTimeSlotData getCreateTimeSlotData() {
        return createTimeSlotData;
    }

    public void setCreateTimeSlotData(CreateTimeSlotData createTimeSlotData) {
        this.createTimeSlotData = createTimeSlotData;
    }


    public DefaultScheduleEvent getScheduleEvent() {
        return scheduleEvent;
    }

    public void setScheduleEvent(DefaultScheduleEvent scheduleEvent) {
        this.scheduleEvent = scheduleEvent;
    }


    public String getTimeDuration() {
        return timeDuration;
    }

    public void setTimeDuration(String timeDuration) {
        this.timeDuration = timeDuration;
    }
}
